import request from '@/utils/request'

// 查询宽带信息列表
export function listBroadband(query) {
  return request({
    url: '/system/broadband/list',
    method: 'get',
    params: query
  })
}

// 查询宽带信息详细
export function getBroadband(broadbandId) {
  return request({
    url: '/system/broadband/' + broadbandId,
    method: 'get'
  })
}

// 新增宽带信息
export function addBroadband(data) {
  return request({
    url: '/system/broadband',
    method: 'post',
    data: data
  })
}

// 修改宽带信息
export function updateBroadband(data) {
  return request({
    url: '/system/broadband',
    method: 'put',
    data: data
  })
}

// 删除宽带信息
export function delBroadband(broadbandId) {
  return request({
    url: '/system/broadband/' + broadbandId,
    method: 'delete'
  })
}
